<?php
/**
 * @version		$Id:  $
 * @package		Success Framework Mobile
 * @subpackage	Helper
 * @copyright	Copyright (C) 2007 - 2010 Success company - VietNam. All rights reserved.
 */
 
defined('PATH_BASE') or die();
   
class sscls_View extends sscls_File
{
     //View current
    var $view='index';
    
    //Layout current
    var $layout='default';
	
    
    function loadLayout($value=array())
    {
        $path=PATH_VIEW.$this->view.DS.$this->layout.'.html';
        if($this->fileexists($path))
        {
            $this->load($path,$value);    
        }
        else
            die('File '.$path.' not found');   
    }
    
    function displaypagelink($object,$tmpl='pagination')
        {
            $this->load(PATH_TMPL.TMPL.DS.$tmpl.'.php',$object);
        }
		
	function getMSG()
	{
		$session=ss_Main::getSession();
		$msg=$session->get('MSG_1234567890');
		return isset($msg)?$msg:'';
	}
    
} 
?>